// BreakAndContinueTest.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream.h>

int main(int argc, char* argv[])
{
	
	cout<<"The Test of break"<<endl;
	for(int i = 1; i < 10; i++)
	{
		if(i%2 == 0)
		{
			cout<<"The value of i is: "<<i<<endl;
			break;
		}

		cout<<"The rest part"<<endl;
		cout<<"The value of i is: "<<i<<endl;
	}

	cout<<"The Test of continue"<<endl;
	for(i = 1; i < 10; i++)
	{
		if(i%2 == 0)
		{
			cout<<"The value of i is: "<<i<<endl;
			continue;
		}
		
		cout<<"The rest part"<<endl;
		cout<<"The value of i is: "<<i<<endl;
	}


	return 0;
}

